package com.zzyl.mapper;

import com.zzyl.entity.Floor;
import com.zzyl.vo.FloorVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FloorMapper {


    /**
     * 新增楼层
     * @param
     * @return
     */
    void create(Floor floor);

    List<FloorVo> selectAllRoomAndBed();

    List<FloorVo> selectAllByNur();

    //修改楼层
    void updateFloor(Floor floor);
    @Delete("delete from floor where id = #{id}")
    void delete(Integer id);

    List<FloorVo> selectAll();

    FloorVo slectFloorById(Long id);
}
